<table>
  <tbody>
    <tr>
      <td>cell1</td>
      <td>cell2</td>
    </tr>
    <tr>
      <td>cell3</td>
      <td>cell4</td>
    </tr>
    <tr>
      <td>cell5</td>
      <td>cell6 |</td>
    </tr>
    <tr>
      <td>cell7</td>
      <td>cell8</td>
    </tr>
  </tbody>
</table>

<p>Missing cells at end</p>

<table>
  <tbody>
    <tr>
      <td>cell1</td>
      <td>cell2</td>
      <td>cell3</td>
    </tr>
    <tr>
      <td>cell1</td>
      <td> </td>
      <td> </td>
    </tr>
    <tr>
      <td> </td>
      <td>cell2</td>
      <td>cell3</td>
    </tr>
  </tbody>
</table>

<p>Escaped pipe characters</p>

<table>
  <tbody>
    <tr>
      <td>cell1 | cell1</td>
      <td>cell2</td>
    </tr>
    <tr>
      <td>cell1</td>
      <td>cell2 |</td>
    </tr>
    <tr>
      <td>cell1 <code>|</code> con</td>
      <td>cell2</td>
    </tr>
  </tbody>
</table>

<p>Table with code elements</p>

<table>
  <tbody>
    <tr>
      <td>This is a <code>span | with</code> a pipe.</td>
      <td> </td>
      <td> </td>
      <td> </td>
    </tr>
    <tr>
      <td>Some <em>span</em></td>
      <td>&lt;/em&gt; here</td>
      <td>a <code>span | with</code> a</td>
      <td>pipe.</td>
    </tr>
  </tbody>
</table>

<p>Special cases regarding codespan syntax</p>

<table>
  <tbody>
    <tr>
      <td>a</td>
      <td><code>b</code></td>
    </tr>
  </tbody>
</table>

<table>
  <tbody>
    <tr>
      <td><code>a</code></td>
    </tr>
  </tbody>
</table>

<table class="cls">
  <tbody>
    <tr>
      <td>table</td>
      <td>with</td>
      <td>ial</td>
    </tr>
  </tbody>
</table>

<table class="cls">
  <tbody>
    <tr>
      <td>table</td>
      <td>with</td>
      <td>ial</td>
    </tr>
  </tbody>
</table>

<p>not starting with a bar</p>

<table>
  <tbody>
    <tr>
      <td>simple</td>
      <td>table</td>
    </tr>
  </tbody>
</table>

<table>
  <thead>
    <tr>
      <th>head1</th>
      <th>head2</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>cell1</td>
      <td>cell2</td>
    </tr>
  </tbody>
</table>

<table>
  <thead>
    <tr>
      <th>head1</th>
      <th>head2</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td> </td>
      <td>cell2</td>
    </tr>
  </tbody>
</table>

<table>
  <tbody>
    <tr>
      <td>a</td>
      <td>b</td>
    </tr>
    <tr>
      <td>c</td>
      <td>d</td>
    </tr>
    <tr>
      <td>e</td>
      <td>f</td>
    </tr>
  </tbody>
</table>

<table>
  <thead>
    <tr>
      <th>Key</th>
      <th>Value type</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><code>Type</code></td>
      <td><code>"GROUP"</code>|<code>"UNKNOWN"</code></td>
    </tr>
  </tbody>
</table>
